import Vue from 'vue'
import VueRouter from 'vue-router'

import ZixunAi from '@/views/zixunAi'
import ActAi from '@/views/actAi'
import LoGinAi from '@/views/loGinAi'
import LaYoutAi from '@/views/laYoutAi'

import ShouCangai from '@/views/shouCangai'
import ChuZuAi from '@/views/chuZuAi'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/zixunAi',
      component: ZixunAi
    },
    {
      path: '/actAi',
      component: ActAi
    },
    {
      path: '/loGinAi',
      component: LoGinAi
    },
    {
      path: '/',
      redirect: '/actAi',
      component: LaYoutAi,
      children: [
        {
          path: '/shouCangai',
          component: ShouCangai
        },
        {
          path: '/chuZuAi',
          component: ChuZuAi
        }
      ]
    }
  ]
})

export default router
